<template>
	<view class="rich">
			<up-parse :content="content"></up-parse>
	</view>
</template>

<script setup>
import { ref } from 'vue';
	import {
		onLoad
	} from '@dcloudio/uni-app';
	
	import {
		getConfigByKeys
	} from "@/api/index.js"
	let content=ref(null)
	
	onLoad((e)=>{
	
		 if(e.type==2){
			 uni.setNavigationBarTitle({
			 	title:"关于我们"
			 })
		 }
		 let txt=e.type==1?'user_agreement':'my'
		 getConfigByKeys({keys:txt}).then(res=>{
			 if(e.type==1){
				 content.value=res.data.user_agreement
			 }else{
				  content.value=res.data.my
			 }
		 })
		 
		 
	})
	
</script>

<style lang="scss" scoped>
	.rich{
		box-sizing: border-box;padding: 30rpx;
	}
	
</style>